package com.zhenai.rocyuan.modules.threadupdown;

import java.io.Serializable;

/**
 * 客户端或服务器进行操作的类型类 , type使用HandleType里面的约定值 ,obj 为操作的对象
 * 
 * @author hzgk
 * 
 */
public class Operation implements Serializable {

	private static final long serialVersionUID = 1L;
	/**
	 * 操作类型
	 */
	private int type;
	/**
	 * 操作对象
	 */
	private Object obj;

	public Operation() {
		super();
	}

	public Operation(int type, Object obj) {
		super();
		this.type = type;
		this.obj = obj;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public Object getObj() {
		return obj;
	}

	public void setObj(Object obj) {
		this.obj = obj;
	}

	@Override
	public String toString() {
		return "Operation [type=" + type + ", obj=" + obj + "]";
	}

}
